<template>
	<div>
		<div v-if="kk==1">
			<GoodList :goodId="1"></GoodList>
		</div>
		<div v-else-if="kk==2">
			<GoodList :goodId="2"></GoodList>
		</div>
		<div v-else-if="kk==3">
			<GoodList :goodId="3"></GoodList>
		</div>
		<div v-else-if="kk==4">4444444444444
		</div>
		<div v-else>
			<GoodList :goodId="0"></GoodList>
		</div>
	</div>
</template>
<script type="text/javascript">
	import Msg from './Msg.js'
	import GoodList from './goodList.vue'
	export default{
		data(){
			return {
				kk: 0
			}
		},
		mounted:function(){
			var _this = this;
			Msg.$on('val',function(m){
				_this.kk = m;
			})
		},
		components:{
			GoodList
		}
	}
</script>